home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / text11s.zoo / text1.1 / Makefile < prev    next >
Encoding:
Makefile  |  1991-11-02  |  4.1 KB  |  124 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Master Makefile for the GNU text utilities.
  3. # Copyright (C) 1991 Free Software Foundation, Inc.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2, or (at your option)
  8. # any later version.
  9.  
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. # GNU General Public License for more details.
  14.  
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; if not, write to the Free Software
  17. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. SHELL = d:/gnu/bin/bash.ttp
  20.  
  21. #### Start of system configuration section. ####
  22.  
  23. srcdir = .
  24.  
  25.  
  26. # If you use gcc, you should either run the fixincludes script that
  27. # comes with it or else use gcc with the -traditional option.  Otherwise
  28. # ioctl calls will be compiled incorrectly on some systems.
  29. CC = cc
  30. AR = ar
  31. # Set RANLIB = echo if your system doesn't have or need ranlib.
  32. RANLIB = echo
  33. # Use cp if you don't have install.
  34. INSTALL = cp
  35. INSTALLDATA = cp
  36.  
  37. # Things you might add to DEFS:
  38. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  39. # -DPOSIX        If you have POSIX.1 headers and libraries.
  40. #            Also need to define -DDIRENT.
  41. # -DUSG            If you have System V/ANSI C string and
  42. #            memory functions and headers.
  43. # -DMEMORY_H_MISSING    If USG and you lack a working memory.h.
  44. # -DST_BLKSIZE_MISSING    If your `struct stat' lacks st_blksize.
  45. # -DSIGTYPE=int        If your signal handlers return int, not void.
  46. # -DCHAR_UNSIGNED    If type `char' is unsigned.
  47. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  48. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  49. #            -DVPRINTF_MISSING.
  50.  
  51. DEFS =  -DSTDC_HEADERS
  52.  
  53. CDEBUG = -g 
  54. CFLAGS = $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
  55. LDFLAGS = -g
  56. LIBS = 
  57.  
  58. prefix = /usr/local
  59. # Prefix for each installed program, normally empty or `g'.
  60. binprefix = 
  61. # Prefix for each installed man page, normally empty or `g'.
  62. manprefix = 
  63.  
  64. # Where to install the executables.
  65. bindir = $(prefix)/bin
  66.  
  67. # Where to install the manual pages.
  68. mandir = $(prefix)/man/man1
  69. # Extension (not including `.') for the installed manual page filenames.
  70. manext = 1
  71.  
  72. #### End of system configuration section. ####
  73.  
  74. MDEFINES = bindir='$(bindir)' mandir='$(mandir)' \
  75. manext='$(manext)' binprefix='$(binprefix)' manprefix='$(manprefix)' \
  76. LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' \
  77. AR='$(AR)' RANLIB='$(RANLIB)' INSTALL='$(INSTALL)' \
  78. INSTALLDATA='$(INSTALLDATA)' \
  79. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  80.  
  81. DISTFILES = COPYING ChangeLog Makefile.in README configure
  82.  
  83. # Subdirectories to run make in for the primary targets.
  84. SUBDIRS = lib src man
  85.  
  86. all:
  87.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  88. .PHONY: all
  89.  
  90. install:
  91.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  92. .PHONY: install
  93.  
  94. tags:
  95.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  96. .PHONY: tags
  97.  
  98. TAGS:
  99.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  100. .PHONY: TAGS
  101.  
  102. clean:
  103.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  104. .PHONY: clean
  105.  
  106. distclean:
  107.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  108.     rm -f Makefile config.status
  109. .PHONY: distclean
  110.  
  111. realclean:
  112.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  113.     rm -f Makefile config.status
  114. .PHONY: realclean
  115.  
  116. dist:
  117.     echo textutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q < src/version.c` > .fname
  118.     rm -rf `cat .fname`
  119.     mkdir `cat .fname`
  120.     ln $(DISTFILES) `cat .fname`
  121.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  122.     tar chZf `cat .fname`.tar.Z `cat .fname`
  123.     rm -rf `cat .fname` .fname
  124.